package cn.domob.android.ads;

import android.content.Context;
import android.graphics.drawable.Drawable;

class w extends DomobAdView
  implements DomobAdEventListener
{
  private static J p = new J(w.class.getSimpleName());
  private boolean q = false;
  private DomobInterstitialAdListener r;
  private y.a s;
  private DomobInterstitialAd.BorderType t = DomobInterstitialAd.BorderType.Black;
  private Drawable u = null;
  private int v;
  private int w;
  private String x = null;

  w(Context paramContext, String paramString1, String paramString2)
  {
    super(paramContext, paramString1, paramString2);
    this.x = paramString2;
    if (this.a != null)
    {
      this.a.a(false);
      this.a.b(false);
    }
    this.b = DomobAdView.a.c.ordinal();
  }

  w(Context paramContext, String paramString1, String paramString2, Drawable paramDrawable, int paramInt1, int paramInt2)
  {
    super(paramContext, paramString1, paramString2);
    this.x = paramString2;
    if (this.a != null)
    {
      this.a.a(false);
      this.a.b(false);
    }
    this.b = DomobAdView.a.c.ordinal();
    this.u = paramDrawable;
    this.v = paramInt1;
    this.w = paramInt2;
  }

  w(Context paramContext, String paramString1, String paramString2, DomobInterstitialAd.BorderType paramBorderType)
  {
    super(paramContext, paramString1, paramString2);
    this.x = paramString2;
    if (this.a != null)
    {
      this.a.a(false);
      this.a.b(false);
    }
    this.b = DomobAdView.a.c.ordinal();
    this.t = paramBorderType;
  }

  void a(Context paramContext)
  {
    boolean bool1 = this.a.u().d().p();
    int i = this.a.u().d().q();
    int j = this.a.u().d().r();
    this.a.b = paramContext;
    if (this.x == null)
    {
      this.i = -1;
      this.j = -1;
    }
    y.a locala1 = new y.a(paramContext).a(this.i, this.j).c(true).a(this.t).a(this.u).a(this.v).b(this.w).a(bool1);
    boolean bool2;
    label132: y.a locala2;
    if (i != 0)
    {
      bool2 = true;
      locala2 = locala1.a(bool2, i);
      if (j == 0)
        break label198;
    }
    for (boolean bool3 = true; ; bool3 = false)
    {
      this.s = locala2.b(bool3, j).b(true).a(new y.b()
      {
        public void a()
        {
          if (w.a(w.this) != null)
            w.a(w.this).onInterstitialAdPresent();
          w.this.a.a("s", "s", 0L);
        }

        public void b()
        {
          w.this.a.a("m", "s", w.this.a.e());
        }

        public void c()
        {
          w.this.a.a("f", "s", w.this.a.e());
          if (w.a(w.this) == null)
            return;
          w.a(w.this).onInterstitialAdDismiss();
        }
      });
      this.s.a(this);
      this.q = false;
      return;
      bool2 = false;
      label198: break label132:
    }
  }

  void a(DomobInterstitialAdListener paramDomobInterstitialAdListener)
  {
    this.r = paramDomobInterstitialAdListener;
  }

  protected void j()
  {
  }

  protected void k()
  {
    if (this.s == null)
      return;
    this.s.a();
  }

  void m()
  {
    super.setAdEventListener(this);
    super.requestRefreshAd();
  }

  boolean n()
  {
    return this.q;
  }

  boolean o()
  {
    return this.q;
  }

  public void onDomobAdClicked(DomobAdView paramDomobAdView)
  {
  }

  public void onDomobAdFailed(DomobAdView paramDomobAdView, DomobAdManager.ErrorCode paramErrorCode)
  {
    if (this.r == null)
      return;
    p.a(this, "Notify interstitial ad failed.");
    this.r.onInterstitialAdFailed(paramErrorCode);
  }

  public void onDomobAdOverlayDismissed(DomobAdView paramDomobAdView)
  {
    if (this.r == null)
      return;
    p.a(this, "Notify interstitial ad landing page close.");
    this.r.onLandingPageClose();
  }

  public void onDomobAdOverlayPresented(DomobAdView paramDomobAdView)
  {
    if (this.r == null)
      return;
    p.a(this, "Notify interstitial ad landing page open.");
    this.r.onLandingPageOpen();
  }

  public void onDomobAdReturned(DomobAdView paramDomobAdView)
  {
    this.q = true;
    if (this.r == null)
      return;
    p.a(this, "Notify interstitial ad ready.");
    this.r.onInterstitialAdReady();
  }

  public void onDomobLeaveApplication(DomobAdView paramDomobAdView)
  {
    if (this.r == null)
      return;
    p.a(this, "Notify interstitial ad leaving application.");
    this.r.onInterstitialAdLeaveApplication();
  }

  DomobInterstitialAdListener p()
  {
    return this.r;
  }
}

/* Location:           C:\Users\god\Desktop\liunianjishiben_V1.1_mumayi_3745b_dex2jar.jar
 * Qualified Name:     cn.domob.android.ads.w
 * JD-Core Version:    0.5.4
 */